//
//  ESCardBaseView.m
//  EasyStyle
//
//  Created by FK on 16/1/20.
//  Copyright © 2016年 FK. All rights reserved.
//

#import "ESCardBaseView.h"

@implementation ESCardBaseView
- (void)awakeFromNib {
    
}

+ (id)loadViewFromSameXibName
{
    return [self loadViewFromXibNamed:NSStringFromClass(self)];
}

+ (id)loadViewFromXibNamed:(NSString*)xibName
{
    NSArray *array = [[NSBundle mainBundle] loadNibNamed:xibName owner:self options:nil];
    if (array && [array count]) {
        return array[0];
    }else {
        return nil;
    }
}
@end
